

#import "FAMHomeTableViewFoodCell.h"
@interface FAMHomeTableViewFoodCell()
@property (weak, nonatomic) IBOutlet UIImageView *FAMFoodImageView;
@property (weak, nonatomic) IBOutlet UILabel *FAMFoodNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *FAMWeightLabel;
@property (weak, nonatomic) IBOutlet UILabel *FAMKcalLabel;

@end
@implementation FAMHomeTableViewFoodCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}
- (void)setFAMFoodrecordModel:(FAMFoodrecordModel *)FAMFoodrecordModel{
    [self.FAMFoodImageView sd_setImageWithURL:FAMFoodrecordModel.image_url placeholderImage:[UIImage imageNamed:@"general_default_icon"]];
    self.FAMFoodNameLabel.text = FAMFoodrecordModel.food_name;
    self.FAMWeightLabel.text = [NSString stringWithFormat:@"%@ g",FAMFoodrecordModel.weight];
    self.FAMKcalLabel.attributedText = [FAMTool FAM_AttributedString:FAMFoodrecordModel.calories styleTwoString:@"kcal" styleColorOne:kCustom0xColor(0x191919, 1.0) styleColorTwo:kCustom0xColor(0x757575, 1.0) styleFontOne:16 styleFontTwo:18];
}
@end
